﻿using CgdataBase;
using Prism.Commands;
using Prism.Mvvm;

namespace FolderCompare.Models
{
    public class HeaderInfo : BindableBase
    {
        public int Index { get; set; }
        public string Header { get; set; }
        public DelegateCommand SwitchHeaderCommand { get; private set; }

        public HeaderInfo()
        {
            SwitchHeaderCommand = new DelegateCommand(OnSwitchHeader);
        }

        private void OnSwitchHeader()
        {
            EventHelper.Aggregator.GetEvent<SwitchHeaderEvent>().Publish(this);
        }
    }
}